package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.AdSensitive;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface WmSensitiveService extends IService<WmSensitive> {

    /**
     * 查询所有的敏感词
     * @param dto
     * @return
     */
    public ResponseResult findList(@RequestBody SensitiveDto dto);

    /**
     * 根据id删除敏感词
     * @param id
     * @return
     */
    public ResponseResult delSensitiveById(@PathVariable("id") Integer id);

    /**
     * 新增敏感词
     * @param wmSensitive
     * @return
     */
    public ResponseResult saveSensitive(@RequestBody WmSensitive wmSensitive);

    /**
     * 更新敏感词
     * @param dto
     * @return
     */
    public ResponseResult updateSensitive(@RequestBody AdSensitive dto);
}
